<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <%@ include file="/common/meta.jsp" %>
        <title><decorator:title/> | <fmt:message key="webapp.name"/></title>
        <c:if test="${currentMenu != 'Portal'}">
            <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/${appConfig["csstheme"]}/theme.css'/>" />
            <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/${appConfig["csstheme"]}/print.css'/>" />
        </c:if>
        <script type="text/javascript" src="<c:url value='/scripts/prototype.js'/>"></script>
        <script type="text/javascript" src="<c:url value='/scripts/scriptaculous.js'/>"></script>
        <script type="text/javascript" src="<c:url value='/scripts/global.js'/>"></script>
        <decorator:head/>
    </head>
    <body<decorator:getProperty property="body.id" writeEntireProperty="true"/><decorator:getProperty property="body.class" writeEntireProperty="true"/>>
        <c:set var="currentMenu" scope="request"><decorator:getProperty property="meta.menu"/></c:set>
        <div id="page">
            <c:if test="${currentMenu != 'Portal'}">
                <div id="header" class="clearfix">
                    <jsp:include page="/common/header.jsp"/>
                </div>
            </c:if>
            <div id="content" class="clearfix">

                <div id="main" >
                    <c:if test="${currentMenu == 'Portal'}">
                        <div style="position:absolute;top:130px">
                            <%@ include file="/common/messages.jsp" %>
                        </div>
                    </c:if>
                    <c:if test="${currentMenu != 'Portal'}">
                        <%@ include file="/common/messages.jsp" %>
                    </c:if>
                    <h1><decorator:getProperty property="meta.heading"/></h1>
                    <decorator:body/>
                </div>
                <%--c:if test="${currentMenu == 'AdminMenu'}">
            <div id="sub">
                <menu:useMenuDisplayer name="Velocity" config="cssVerticalMenu.vm" permissions="rolesAdapter">
                    <menu:displayMenu name="AdminMenu"/>
                </menu:useMenuDisplayer>
            </div>
            </c:if--%>
                <c:if test="${currentMenu != 'MainMenu' && currentMenu != 'Login' && currentMenu != 'Portal'}">
                    <div id="sub">
                        <menu:useMenuDisplayer name="Velocity" config="cssVerticalMenu.vm" permissions="rolesAdapter">
                            <menu:displayMenu name="${currentMenu}"/>
                        </menu:useMenuDisplayer>
                    </div>

                </c:if>
                <c:if test="${currentMenu != 'Portal'}">
                    <div id="nav">
                        <div class="wrapper">
                            <h2 class="accessibility">Navigation</h2>
                            <jsp:include page="/common/menu.jsp"/>
                        </div>
                        <hr/>
                    </div><!-- end nav -->
                </c:if>
            </div>
            <c:if test="${currentMenu != 'Portal'}">
                <div id="footer" class="clearfix">
                    <jsp:include page="/common/footer.jsp"/>
                </div>
            </c:if>
        </div>
    </body>
</html>
